package com.vcredit.creditcat.api;

import java.util.List;

import com.vcredit.creditcat.dto.AccCityDto;
import com.vcredit.creditcat.dto.AccInitDto;
import com.vcredit.creditcat.dto.AccLoginDto;
import com.vcredit.creditcat.model.AuthAccumulation;
import com.vcredit.creditcat.model.AuthSocial;

public interface IAuthAccumulationManager {

	List<AccCityDto> supportCity(Long processId, Integer type)throws Exception;
	
	String queryForm(String city, Long processId, Integer type)throws Exception;
	
	AccInitDto init(String city, Long processId,Integer type ) throws Exception;
	
	String login(Long processId, AccLoginDto input, Integer type, String idNo, Long custId) throws Exception;

	/**
	 * 爬取未采集的公积金信息
	 * @return
	 */
	List<AuthAccumulation> findUnCrawlAccumulation();
	
	/**
	 * 采集公积金信息
	 * @param authAccumulation
	 * @throws Exception
	 */
	void updateAccumulationCrawlerState(AuthAccumulation authAccumulation) throws Exception;

	List<AuthSocial> findAlreadyLoginAuthSocial();
	
	void updateSocialCrawlState(AuthSocial param) throws Exception;
};